package yto.freemarker.springaop.util;

import java.io.UnsupportedEncodingException;

/**
 * @author dongxing
 **/
public class SafeEncoder {

    public static byte[] encode(String str) {

        try {
            return str.getBytes("utf-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return null;

    }
}
